<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>孩子王双11，“剁掉”老婆的手</title>
    <meta name="viewport"
          content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no,target-densitydpi=device-dpi"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>

    <meta name="full-screen" content="true"/>
    <meta name="screen-orientation" content="portrait"/>
    <meta name="x5-fullscreen" content="true"/>
    <meta name="360-fullscreen" content="true"/>

    <style>
        body {
            text-align: center;
            background: #000000;
            padding: 0;
            border: 0;
            margin: 0;
            height: 100%;
        }
        html {
            -ms-touch-action: none; /* Direct all pointer events to JavaScript code. */
            overflow: hidden;
        }
        div, canvas {
            display:block;
            position:absolute;
            margin: 0 auto;
            padding: 0;
            border: 0;
        }
        .shareGuide {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            text-align: center;
            color: #fff;
            font-size: 1.5em;
            line-height: 1.7em;
            background: rgba(0, 0, 0, 0.85);
        }
        .shareGuide .arrow {
            position: absolute;
            top: 8px;
            right: 50px;
            width: 100px;
            height: 100px;
            background: url(http://218.244.158.213/double/resource/arron.png) no-repeat;
            background-size: 100px 100px;
        }

        #bdShareGuide .arrow {
            top: auto;
            bottom: 8px;
            transform: rotateX(180deg);
            -webkit-transform: rotateX(180deg);
        }

        .shareGuide p {
            position: absolute;
            left: 0;
            top: 90px;
            font-size: 12px;
            width: 100%;
        }

        .shareGuide .closeSG {
            position: absolute;
            top: 8px;
            left: 8px;
            font-size: 1.5em;
            color: #fff;
            text-decoration: none;
            outline: none;
        }

        #bdShareGuide p {
            top: auto;
            bottom: 90px;
        }
    </style>
    <script src="http://218.244.158.213/double/resource/jquery.min.js"></script>
</head>
<body>
<div style="position:relative;" id="gameDiv"></div>
<div id="wxShareGuide" class="shareGuide">
    <div class="arrow"></div>
    <p>请点击右上角<br/>去朋友圈炫耀吧</p>
    <a href="javascript:" class="closeSG">×</a>
</div>
<script>
    var totalMin = 0;
    var openurl = "http://wxserver.haiziwang.com/order.html?from=singlemessage&isappinstalled=0#!/commodity/list?appId=be9676be36c681cbe8e0ef09e0a72cb8&openId=ofOPyjnU-ulPUeOG2e5uUqpcrojM";
    function shareWechat(){return eval};
    var browser = {
        versions: function () {
            var u = navigator.userAgent, app = navigator.appVersion;
            return {
                trident: u.indexOf('Trident') > -1, //IE内核
                presto : u.indexOf('Presto') > -1, //opera内核
                webKit : u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
                gecko  : u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,//火狐内核
                mobile : !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
                iOS    : !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
                Android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
                iPhone : u.indexOf('iPhone') > -1, //是否为iPhone或者QQHD浏览器
                iPad   : u.indexOf('iPad') > -1, //是否iPad
                webApp : u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部
                baidu  : u.indexOf('baidu') > -1,
                weixin : u.indexOf('MicroMessenger') > -1
            };
        }(),
        language: (navigator.browserLanguage || navigator.language).toLowerCase()
    };
    window.shareData = {
        "tTitle"      : "双十一，我剁掉了我老婆的手，你也来试试？",
        "imgUrl"      : "http://218.244.158.213/double/release/resource/assets/logo.png",
        "timeLineLink": "http://218.244.158.213/double/release/beta2/index.html",
        "tContent"    : ""
    };
    function share(n,m,title_str){
        var base = 20;
        var s1 = Math.ceil(window.screen.width / 320) * base;
        s1 = s1>base?s1:base;
        var s2 = s1 * 1.5;
        var st = s1 +"px";
        var s2t = s2 + "px";

        $(".shareGuide p").css("font-size",st);
        $(".shareGuide p").css("line-height",s2t);

        /*
        if(m == 0){
            document.title = window.shareData.tTitle = "最黄最暴力！";
        }
        if (m == 1) {
            document.title = window.shareData.tTitle = "我是" + title_str + "，老公，赢取孩子王兑金券，你也来试试呀!";
        }
        if (m == 2) {
            document.title = window.shareData.tTitle = "败家娘们，你管得住吗？！";
        }
        */
        window.shareData.tTitle = "双11，我用"+m+"秒剁掉了我老婆的手，你也来试试？";
        window.setTimeout(hiddenMe, 4000);
        $("#wxShareGuide").css("display","block");
    };
    function hiddenMe(){
        $("#wxShareGuide").css("display","none");
    }
    function showme(n){
        //window.location.href = "";
        totalMin = n;
        window.shareData.tTitle = "双11，我用"+n+"秒剁掉了我老婆的手，你也来试试？";
    }
    var mebtnopenurl = "http://218.244.158.213/double/launcher/index.html"
    document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {

        WeixinJSBridge.on('menu:share:appmessage', function(argv) {
            WeixinJSBridge.invoke('sendAppMessage', {
                "img_url": window.shareData.imgUrl,
                "link": window.shareData.timeLineLink,
                "desc": window.shareData.tContent,
                "title": window.shareData.tTitle
            }, function(res) {
                if(totalMin<=4&&totalMin>0) {
                    document.location.href = openurl;
                }
            })
        });

        WeixinJSBridge.on('menu:share:timeline', function(argv) {
            WeixinJSBridge.invoke('shareTimeline', {
                "img_url": window.shareData.imgUrl,
                "img_width": "640",
                "img_height": "640",
                "link": window.shareData.timeLineLink,
                "desc": window.shareData.tContent,
                "title": window.shareData.tTitle
            }, function(res) {

                if(totalMin<=4&&totalMin>0) {
                    document.location.href = openurl;
                }
            });
        });

        WeixinJSBridge.on('menu:share:weibo', function(argv) {
            WeixinJSBridge.invoke('shareWeibo', {
                "content": window.shareData.tContent,
                "url": window.shareData.timeLineLink
            }, function(res) {
                if(totalMin<=4&&totalMin>0) {
                    document.location.href = openurl;
                }
            });
        });

    }, false);
    </script>
<script>var document_class = "Main";</script><!--这部分内容在编译时会被替换，要修改文档类，请到工程目录下的egretProperties.json内编辑。-->
<script src="launcher/egret_require.js"></script>
<script src="launcher/egret_loader.js"></script>
<script src="launcher/game-min.js"></script>
<script>
    egret_h5.startGame();
</script>
<script language="javascript" type="text/javascript" src="http://js.users.51.la/17434992.js"></script>
<noscript><a href="http://www.51.la/?17434992" target="_blank"><img alt="&#x6211;&#x8981;&#x5566;&#x514D;&#x8D39;&#x7EDF;&#x8BA1;" src="http://img.users.51.la/17434992.asp" style="border:none" /></a></noscript>
</body>
</html>